package entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (Messages)实体类
 *
 * @author makejava
 * @since 2024-04-22 12:33:38
 */
public class Messages implements Serializable {
    private static final long serialVersionUID = 687049641442053051L;
    /**
     * 留言ID，主键
     */
    private Integer id;
    /**
     * 外键，关联到用户表的ID
     */
    private Integer userId;
    /**
     * 留言内容
     */
    private String message;
    /**
     * 留言时间
     */
    private Date createdAt;

    private Integer power;

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

}

